package org.example.service;

import org.example.entity.Comment;
import org.example.entity.Post;
import org.example.entity.Response;
import org.example.entity.Users;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


public interface MainService {
    //user
    public Response login( Users users) throws  Exception;
    public Response focus(Integer befocusId,Integer focusId) throws  Exception;
    public Response canclefocus(Integer befocusId,Integer focusId) throws  Exception;
    public Response updateUserInfo( Users user) throws  Exception;
    public Response getUserInfo(Integer uid) throws  Exception;

    //post
    public Response getAllPosts(Integer page,String classification,Integer posterId) throws Exception;
    public Response getPostDetail(  Integer postID) throws  Exception;
    public Response starPost( Integer postID) throws  Exception;
    public Response updatePost( Post post) throws  Exception;
    public Response addPost( Post post) throws  Exception;

    //comment
    public Response addcomemt( Comment comment) throws  Exception;
    public Response getcomemt(Integer postID,Integer page) throws  Exception;
    public Response starcomemt(Integer comID) throws  Exception;
}
